package cn.boge.hrm;

import cn.boge.hrm.config.DataSourceConfiguration;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

/*
@SpringBootApplication
@EnableDiscoveryClient
@EnableCircuitBreaker
 */
//@SpringCloudApplication//=SpringBootApplication+EnableDiscoveryClient+EnableCircuitBreaker
@EnableDiscoveryClient
@EnableCircuitBreaker
@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)
@MapperScan("cn.boge.hrm.mapper")
@EnableCaching//开启缓存注解
@EnableFeignClients
public class UserStart4060 {
    public static void main(String[] args) {
        SpringApplication.run(UserStart4060.class,args);
    }
}
